package org.apache.ibatis.test.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.test.pojo.User;


import java.util.List;

/**
 * @author org.org.clxmm
 * @Description
 * @create 2021-07-07 8:19 下午
 */
public interface UserDao {





    @Select("select * from user")
    List<User> getUsers();


//    @Select("select * from user where id = #{id}")
    User getUserById(@Param("id") int id);




}
